package com.py.outbound.domain;

import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

//返回统计图的数据
@Builder
@Data
public class StatisticsDate {
    private List<LocalDate> dateList;
    private List<BigDecimal> price;
    private List<Integer> quantity;

    // 假设这是您的构建器
    public static class Builder {
        private List<LocalDate> dateList;
        private List<BigDecimal> price;
        private List<Integer> quantity;

        public Builder dateList(List<LocalDate> dateList) {
            this.dateList = dateList;
            return this;
        }

        public Builder price(List<BigDecimal> price) {
            this.price = price;
            return this;
        }

        public Builder quantity(List<Integer> quantity) {
            this.quantity = quantity;
            return this;
        }

        public StatisticsDate build() {
            return new StatisticsDate(dateList, price, quantity);
        }
    }

}
